<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<div class="page">
	<div class="pageContent">
		<form id="goodsInfo" method="post" action="${ctx }/crm/goods!save.action" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
			<input type="hidden" name="id" value="${id }"/>
			<input type="hidden" name="navTabId" value="goodsList"/>
			<div class="pageFormContent" layoutH="56" >
				<div style="margin-bottom:5px;">
					<label>产品系列和分类：</label>
					<input type="hidden" id="category" name="category" size="40" value="${category}"/>
					<input type="text"  id="categoryName" name="categoryName"  value="${cate.parent.name} | ${cate.name}" class="required" size="50" />
					<a class="inputButton" href="${ctx }/common/sys-type-ui!getSysClassUL.action?code=GOODS_CATEGORY&leafNode=true&idInput=category&nameInput=categoryName&form=goodsInfo&dlgID=goodsDlgtype&cascadeName=true" target="dialog" rel="goodsDlgtype">产品系列和类型</a>
				</div>
				<div style="margin-bottom:5px;">
					<label>产品名称：</label>
					<input name="pname"  class="required" type="text" size="60" value="${pname}" alt="请输入产品名称" />
					<label>简 称：</label>
					<input name="shortname"  class="required" type="text" size="40" value="${shortname}" alt="请输入简称" />
				</div>
				<div>
					<label>英文名称：</label>
					<input name="ename"   type="text" size="60" value="${ename}"  />
					<label>英文简称：</label>
					<input name="enickname"  type="text" size="40" value="${enickname}"  />
				</div>				
				<p>
					<label> 型 号：</label>
					<input name="model"  type="text" size="30" class="required" alt="" value="${model}"/>
				</p>
				<p>
					<label> 重 量（KG）：</label>
					<input name="weight"  type="text" size="30" value="${weight}" />
				</p>
				<p>
					<label> 单 位 ：</label>
					<input name="unit"  type="text" size="30" class="required" value="${unit}" />
				</p>
					<label> 单 价（元）：</label>
					<input name="price" class="required" value="<s:if test="price!=null"><s:text name="global.format.money"><s:param value="price"/></s:text></s:if>" type="text" size="20" />
				
				<div style="margin-bottom:5px;">
					<label>产 地：</label>
					<input type="text"  name="origin"  value="${origin}" size="80" />
				</div>
				<div style="margin-bottom:5px;">
					<label>产品描述：</label>
					<textarea rows="5" cols="80" name="description">${description }</textarea>
				</div>
				<div>
					<label>备 注：</label>
					<textarea rows="5" cols="80" name="note">${note }</textarea>
				</div>
			</div>
			<div class="formBar">
				<ul>
					<!--<li><a class="buttonActive" href="#"><span>保存</span></a></li>-->
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="Button" onclick="navTab.closeCurrentTab()">取消</button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</div>